<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog x-modal-dialog" style="width: 550px; margin-top: 100px;">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
      </button>
      <h4 class="modal-title"> 抵用券管理&nbsp;-&nbsp;导入新增</h4>
    </div>

    <form class="form-horizontal" method="POST" action="${ctx.host}/outside-coupons/import" enctype="multipart/form-data" data-validate="true">


      <div class="modal-body">

        <div class="form-group x-form-group payment-type">
          <label class="col-xs-2 control-label">文件</label>
          <div class="col-xs-6">
            <input type="file" accept="xls,xlsx" class="form-control" name="file"  placeholder="请选择文件" accept=".xls,.xlsx" data-validate="required" />
          </div>
          <div class="col-xs-4">
            <a href="${ctx.resource}/templates/coupon-upload-template.xlsx" download="store-sku-template.xlsx">下载模板</a>
          </div>
        </div>
      </div>

      <div class="modal-footer x-modal-footer">
        <button type="submit" class="btn x-btn btn-primary">确定</button>
        <button type="button" class="btn x-btn x-btn-gary" data-dismiss="modal">取消</button>
      </div>

    </form>

  </div>
</div>